home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_p / pcshx10a.zip / PCSHX10A.EXE / INSTALL.BAT next >
DOS Batch File  |  1991-12-04  |  15KB  |  388 lines

  1. ECHO OFF
  2. CLS
  3. IF EXIST GET.EXE GOTO OK
  4. IF NOT EXIST PCSHX10B.EXE GOTO M1
  5. PCSHX10B
  6. :OK
  7. GOTO GO
  8. :M1
  9. PKUNZIP PCSHX10B
  10. IF NOT EXIST PCSHX10B.EXE GOTO M2
  11. PCSHX10B
  12. GOTO GO
  13. :M2
  14. ECHO PCSHX10B.EXE is not in current directory: PC-Shakespeare cannot install.
  15. PAUSE
  16. GOTO NO
  17. :GO
  18. CLS
  19. ECHO Welcome to PC-Shakespeare installation! The archive files PCSHX10A.EXE
  20. ECHO and PCSHX10B.EXE together include a sample copy of PC-Shakespeare, this
  21. ECHO installation batch program, and much else besides. They contain, however
  22. ECHO only one play, King John. The five subsequent History plays, also part
  23. ECHO of this sample package, should be available in the archive files named
  24. ECHO PCSHX10C.EXE, which also holds the text-editor PC-Shakespeare defaults
  25. ECHO to, and PCSHX10D.EXE. At least the contents of PCSHX10A.EXE, and any of
  26. ECHO these other self-extracting archive files available to you should be on
  27. ECHO the drive you plan to use and in an otherwise empty directory. The
  28. ECHO installation can unzip archives containing these if the ZIP files have
  29. ECHO the same filenames and PKUNZIP is available on your path.
  30. ECHO                     ---
  31. ECHO The installation program may try your patience, for the ensemble of disk
  32. ECHO access, file dearchiving, and large batch programs proves mortal to the
  33. ECHO celerity of thought, so instead you will find something here to read,
  34. ECHO perhaps to try your patience at a higher level.
  35. ECHO                     ---
  36. ECHO PC-Shakespeare itself utilizes a number of cooperating programs. They are NOT
  37. ECHO part of PC-Shakespeare, and are freely distributed. PC-Shakespeare is basically
  38. ECHO a shell, as are communication programs, and the cooperating programs are
  39. ECHO mostly intended as the predominantly UN*X-like extensions to your DOS operating
  40. ECHO system which allow it to support a shell like PC-Shakespeare.
  41. ECHO                     ---
  42. PAUSE
  43. CLS
  44. ECHO The programs in UTILS.EXE may mostly be freely used and distributed (see their
  45. ECHO docs). PC-Shakespeare can also use Vernon Buerg's superior shareware browser
  46. ECHO LIST in place of its default browser. Most of the cooperating programs are
  47. ECHO accompanied with all available documentation and auxilliary files, as is the
  48. ECHO editor in PCSHX10C. Exceptions are PDSORT - this sample distribution does
  49. ECHO not include its source-code, and AMENU from MENUKEYS, which links lines back
  50. ECHO from browsers to quotation lists, used by permission of Laboratory Computer
  51. ECHO Systems. The latter is archived with only a brief description of its
  52. ECHO parent program.
  53. ECHO                     ---
  54. PAUSE
  55. CLS
  56. ECHO The initial installation of PC-Shakespeare will extract the specific
  57. ECHO executables which cooperate with PC-Shakespeare. You are encouraged to learn
  58. ECHO more about these programs by running UTILDOCS and GREPDOCS; self-extracting LHA
  59. ECHO archives copied to a DOCSETC directory during PC-Shakespeare installation.
  60. ECHO They are all very useful and interesting programs.
  61. ECHO                     ---
  62. ECHO PC-Shakespeare REQUIRES a hard disk (preferably cached) and a mouse. Honest.
  63. ECHO                     ---
  64. PAUSE
  65. CLS
  66. ECHO This installation should not be done from within a DOS menuing shell:
  67. ECHO If one is currently running, please exit this installation program,
  68. ECHO exit that shell and start again. Shells can make things iffy for the
  69. ECHO Environment variables used by this installation program. Also shells can
  70. ECHO interfere with installing TSR programs (the optional ones associated with the
  71. ECHO current PC-Shakespeare are SDUMP and MENUKEYS). Hence if you intend to use a
  72. ECHO DOS shell, you should either configure PC-Shakespeare as an application for
  73. ECHO your shell so the shell gets out of the way (rather than invoke it from the
  74. ECHO command line within the shell), or add the TSRs you use to your AUTOEXEC.BAT
  75. ECHO file. You can use PC-Shakespeare's configuration screen to remove them from
  76. ECHO its own setup, but you must decide for yourself where they belong in your
  77. ECHO AUTOEXEC.BAT file; see the configuration screen for details. If you
  78. ECHO find you do not need to put the TSRs into the AUTOEXEC.BAT, when you
  79. ECHO exit PC-Shakespeare the memory they use will be released for other
  80. ECHO uses. On this basis PC-Shakespeare will, I believe, get along with most
  81. ECHO shells, though shells sometimes interfere with programs' speed.
  82. ECHO                     ---
  83. GET N "Do you wish to install PC-Shakespeare (Y)es or (N)o? "
  84. IF "%GET%" == "Y" GOTO Y1
  85. IF "%GET%" == "y" GOTO Y1
  86. IF NOT EXIST PCSHX10B.EXE GOTO NO
  87. DEL GET.EXE
  88. DEL UTILS.EXE
  89. DEL GNUFGREP.EXE
  90. DEL PCSHX10B.TXT
  91. GOTO NO
  92. :Y1
  93. ECHO                     ---
  94. SET GET=PCSHX.EXE
  95. IF NOT EXIST %GET% GOTO MS
  96. SET GET=UTILS.EXE
  97. IF NOT EXIST %GET% GOTO MS
  98. SET GET=GNUFGREP.EXE
  99. IF NOT EXIST %GET% GOTO MS
  100. SET GET=0
  101. GET YE
  102. SET DRV1=%GET%
  103. SET DRV=%DRV1%
  104. GET Y
  105. SET DRV1=%DRV1%:%GET%
  106. SET GET=0
  107. GET K %DRV%
  108. SET DRV=%DRV1%
  109. ECHO %DRV1%: has %GET% kb free: PC-Shakespeare installation needs about 1600 kb:
  110. GET N "   Do you wish to install PC-Shakespeare on this drive: (Y)es or (N)o? "
  111. IF "%GET%" == "Y" GOTO Y3
  112. IF "%GET%" == "y" GOTO Y3
  113. GOTO NO
  114. :Y3
  115. MKDIR DOCSETC
  116. MKDIR SHX-ARC
  117. IF EXIST PCSHX10B.EXE GOTO S0
  118. IF EXIST PCSHX10B.ZIP GOTO S0
  119. COPY UTILS.EXE %DRV1%\SHX-ARC
  120. COPY GNUFGREP.EXE %DRV1%\SHX-ARC
  121. COPY GET.EXE %DRV1%\SHX-ARC
  122. COPY PCSHX10B.TXT %DRV1%\SHX-ARC
  123. DEL PCSHX10B.TXT
  124. IF NOT EXIST PCSHX10B.INF GOTO S0C
  125. COPY PCSHX10B.INF %DRV1%\SHX-ARC
  126. DEL PCSHX10B.INF
  127. GOTO S0C
  128. :S0
  129. IF NOT EXIST PCSHX10B.ZIP GOTO S0B
  130. IF NOT EXIST PCSHX10B.INF GOTO S0B1
  131. DEL PCSHX10B.INF
  132. :S0B1
  133. DEL PCSHX10B.EXE
  134. :S0B
  135. IF EXIST PCSHX10B.ZIP GOTO S0B2
  136. IF NOT EXIST PCSHX10B.INF GOTO S0B2
  137. COPY PCSHX10B.INF %DRV1%\SHX-ARC
  138. DEL PCSHX10B.INF
  139. :S0B2
  140. DEL PCSHX10B.TXT
  141. COPY PCSHX10B.* %DRV1%\SHX-ARC
  142. DEL PCSHX10B.*
  143. :S0C
  144. IF EXIST PCSHX10C.EXE GOTO S1A
  145. IF NOT EXIST PCSHX10C.ZIP GOTO S1
  146. PKUNZIP PCSHX10C.ZIP
  147. :S1A
  148. IF NOT EXIST PCSHX10C.EXE GOTO S1
  149. PCSHX10C
  150. IF NOT EXIST PCSHX10C.ZIP GOTO S1B
  151. IF NOT EXIST PCSHX10C.INF GOTO S1B1
  152. DEL PCSHX10C.INF
  153. :S1B1
  154. DEL PCSHX10C.EXE
  155. :S1B
  156. IF EXIST PCSHX10C.ZIP GOTO S1B2
  157. COPY PCSHX10C.INF %DRV1%\SHX-ARC
  158. DEL PCSHX10C.INF
  159. :S1B2
  160. DEL PCSHX10C.TXT
  161. COPY PCSHX10C.* %DRV1%\SHX-ARC
  162. DEL PCSHX10C.*
  163. :S1
  164. IF EXIST PCSHX10D.EXE GOTO S2A
  165. IF NOT EXIST PCSHX10D.ZIP GOTO S2
  166. PKUNZIP PCSHX10D.ZIP
  167. :S2A
  168. IF NOT EXIST PCSHX10D.EXE GOTO S2
  169. PCSHX10D
  170. IF NOT EXIST PCSHX10D.ZIP GOTO S2B
  171. IF NOT EXIST PCSHX10D.INF GOTO S2B1
  172. DEL PCSHX10D.INF
  173. :S2B1
  174. DEL PCSHX10D.EXE
  175. :S2B
  176. IF EXIST PCSHX10D.ZIP GOTO S2B2
  177. COPY PCSHX10D.INF %DRV1%\SHX-ARC
  178. DEL PCSHX10D.INF
  179. :S2B2
  180. DEL PCSHX10D.TXT
  181. COPY PCSHX10D.* %DRV1%\SHX-ARC
  182. DEL PCSHX10D.*
  183. :S2
  184. IF EXIST PCSHX10A.EXE GOTO S3
  185. IF EXIST PCSHX10A.ZIP GOTO S3
  186. COPY PCSHX.EXE %DRV1%\SHX-ARC
  187. COPY INSTALL.BAT %DRV1%\SHX-ARC
  188. COPY README.1ST %DRV1%\SHX-ARC
  189. COPY TUTOR.TXT %DRV1%\SHX-ARC
  190. IF NOT EXIST PCSHX10A.INF GOTO S3C
  191. COPY PCSHX10A.INF %DRV1%\SHX-ARC
  192. DEL PCSHX10A.INF
  193. GOTO S3C
  194. :S3
  195. IF NOT EXIST PCSHX10A.ZIP GOTO S3B
  196. IF NOT EXIST PCSHX10A.INF GOTO S3B1
  197. DEL PCSHX10A.INF
  198. :S3B1
  199. DEL PCSHX10A.EXE
  200. :S3B
  201. IF EXIST PCSHX10A.ZIP GOTO S3B2
  202. COPY PCSHX10A.INF %DRV1%\SHX-ARC
  203. DEL PCSHX10A.INF
  204. :S3B2
  205. COPY PCSHX10A.* %DRV1%\SHX-ARC
  206. DEL PCSHX10A.*
  207. :S3C
  208. COPY README.1ST %DRV1%\DOCSETC
  209. DEL README.1ST
  210. UTILS
  211. DEL UTILS.EXE
  212. COPY UTILDOCS.EXE %DRV%\DOCSETC
  213. DEL UTILDOCS.EXE
  214. COPY MED.* %DRV%\DOCSETC
  215. DEL MED.*
  216. GNUFGREP
  217. DEL GNUFGREP.EXE
  218. COPY GREPDOCS.EXE %DRV%\DOCSETC
  219. DEL GREPDOCS.EXE
  220. PCSHX
  221. DEL PCSHX.EXE
  222. COPY *.INF %DRV%\DOCSETC
  223. DEL *.INF
  224. EDIT345
  225. DEL EDIT345.EXE
  226. COPY EDIT.DOC %DRV1%\DOCSETC
  227. DEL EDIT.DOC
  228. :Y8
  229. SET HCFG=:%DRV1%:
  230. ECHO                     ---
  231. PAUSE
  232. CLS
  233. ECHO                     ---
  234. ECHO If PCSHX10C.EXE is present in this installation, PC-Shakespeare will have
  235. ECHO available its default text-editor, which is called, yes, EDIT. It is
  236. ECHO version 3.45 by H. Wauchope from Trailing Edge Technology. It is very
  237. ECHO small, very convenient and has an interesting and relevant complement of
  238. ECHO features. Try it! However, PC-Shakespeare is designed to accept an editor
  239. ECHO of your choice.  See the configuration screen for all such
  240. ECHO PC-Shakespeare options.
  241. ECHO                     ---
  242. SET HCFG=%HCFG%:EDIT
  243. PAUSE
  244. CLS
  245. ECHO                     ---
  246. ECHO Both current options for PC-Shakespeare's text browser may use
  247. ECHO Chris Dunford's miniscule classic TSR screen-capture program SDUMP
  248. ECHO to optionally link lines from text back into lists of references.
  249. ECHO                     ---
  250. ECHO PC-Shakespeare's default browser is the DOS version of LESS, a relatively
  251. ECHO recent UN*X utility named in apposition to 'MORE' (but you see it allows
  252. ECHO backward scrolling - so, LESS; and thereby also is it shown yet again that
  253. ECHO LESS is more and conversely, MORE is less). The port of LESS to DOS was
  254. ECHO performed by Dick Keily. LESS can make use of Laboratory Computer Systems'
  255. ECHO admirable TSR AMENU from MENUKEYS to let your mouse bypass UN*X's
  256. ECHO characteristically peculiar interface, but it is not required if you
  257. ECHO would just as soon learn strange keystrokes. For linking lines, though,
  258. ECHO LESS can only use SDUMP.
  259. ECHO                     ---
  260. PAUSE
  261. CLS
  262. ECHO                     ---
  263. ECHO If you have Vernon Buerg's celebrated shareware browser program LIST in
  264. ECHO your path, PC-Shakespeare can make use of it. With LIST you may use SDUMP or
  265. ECHO the TSR AMENU program or both for linking lines. For those of you who
  266. ECHO already know what LIST can do, here is another reason to register it.
  267. ECHO                     ---
  268. PAUSE
  269. CLS
  270. ECHO                     ---
  271. ECHO AMENU from Laboratory Computer Systems' MENUKEYS allows a mouse and
  272. ECHO menus with either the LESS or LIST text browsers.
  273. ECHO                     ---
  274. GET N "   ...Do you wish to have AMENU on: (Y)es or (N)o? "
  275. IF "%GET%" == "Y" GOTO MK
  276. IF "%GET%" == "y" GOTO MK
  277. GOTO PS
  278. :MK
  279. SET HCFG=%HCFG%:AMENU
  280. :PS
  281. SET HCFG=%HCFG%:SDUMP
  282. CLS
  283. ECHO                     ---
  284. ECHO At this point SDUMP will be setup as resident when you enter PC-Shakespeare.
  285. ECHO AMENU may join it, depending on your choice. Because these are Terminate and
  286. ECHO Stay Resident programs, depending on what else resides in your system, setup
  287. ECHO may result in the system hanging up. If this worst case happens, reboot, and
  288. ECHO edit your AUTOEXEC.BAT file, temporarily putting 'REM ' at the beginning of
  289. ECHO all lines which invoke TSRs. Then reboot again, enter PC-Shakespeare and use
  290. ECHO its configuration screen to remove whichever of SDUMP, or AMENU are present.
  291. ECHO Now you can try putting them into your AUTOEXEC.BAT file (instead of
  292. ECHO PC-Shakespeare's setup) working your way up from the next-to-last line, or if
  293. ECHO you thereby find the offending program, pluck it out. Remember, AMENU is not
  294. ECHO absolutely necessary. For more information see PC-Shakespeare's
  295. ECHO configuration screen.
  296. ECHO                     ---
  297. PAUSE
  298. CLS
  299. ECHO                     ---
  300. ECHO Ubiquitous use is made from PC-Shakespeare of a modified version of the
  301. ECHO UN*X-like utility SED (Stream EDitor). This one is a component of the Free
  302. ECHO Software Foundation's GNU (Gnu's Not Unix). Very interesting. Also much used
  303. ECHO are GNU's Boyer-Moore hybridized FGREP and GNUEGREP.  GNUEGREP, which can 
  304. ECHO search by 'Regular Expressions' is not included in this distribution, but if
  305. ECHO you have it in your path as 'GREP' PC-Shakespeare can use it. Also UN*X-like
  306. ECHO from, I believe, Dan Kegel and those folks at Yoyodyne (...the People with
  307. ECHO the Future in their hands...), the almost invisible disk-use utility DU.
  308. ECHO                     ---
  309. PAUSE
  310. CLS
  311. ECHO                     ---
  312. ECHO PDSORT, written for the Public Domain by Don A. Williams sorts BIG files.
  313. ECHO Erich Gans formidable FINREP (FINd-and-REPlace) had a past-life in CPM(!).
  314. ECHO Little things are Bob Eyer's FAST line-counter LCNT; and the anonymous(?)
  315. ECHO and unusual approach to TSR management, RELEASE.
  316. ECHO                     ---
  317. ECHO Thanks to each and all. Check them out.
  318. ECHO                     ---
  319. ECHO If PCSHX10C is present you will have available the novelty screen font
  320. ECHO program MED. It is not integrated with PC-Shakespeare, though it can
  321. ECHO entertainingly be used with it.
  322. ECHO                     ---
  323. DEL GET.EXE
  324. SED -e "s/DRV1/%DRV1%/g" -e "s/DRV/%DRV1%/g" INSTALL.BAT > INSTALL.TMP
  325. SED -n -f INS.SED INSTALL.TMP > INSTALL.TXT
  326. COPY INSTALL.TXT %DRV%\DOCSETC
  327. PAUSE
  328. CLS
  329. ECHO                     ---
  330. ECHO This installation has done its darndest to move the archive elements
  331. ECHO in this directory to the subdirectory %DRV1%\SHX-ARC.
  332. ECHO So %DRV1% should now hold only necessary files.
  333. ECHO The programs used only during this installation will be moved to
  334. ECHO %DRV1%\DOCSETC. Nothing in DOCSETC is essential to the operation of
  335. ECHO PC-Shakespeare, so you may peruse and delete therein at will. Among
  336. ECHO those files is Bob Stephan's swiss-army-knife batch file utility GET,
  337. ECHO capable of more elegant use than it has suffered at my hands in the
  338. ECHO assemblage of this installation program.
  339. ECHO                     ---
  340. ECHO One reason for checking out the documentation of some of the cooperating
  341. ECHO programs is to consider whether they belong somewhere on your directory
  342. ECHO PATH, and if they should take the place of other programs you have in
  343. ECHO current use. It is probable that is what these authors would like to see.
  344. ECHO                     ---
  345. COPY TUTOR.TXT %DRV%\DOCSETC
  346. DEL TUTOR.TXT
  347. DEL INS.SED
  348. PAUSE
  349. CLS
  350. ECHO                     ---
  351. ECHO                     ---
  352. ECHO Hereafter when you want PC-Shakespeare, just type SHX from %DRV%.
  353. ECHO PC-Shakespeare includes its own hypertext documentation: 'The Map' functions
  354. ECHO as its table of contents. The left mouse button makes selections on
  355. ECHO highlighted text. The right mouse button always gets you the System Menu.
  356. ECHO You will find a copy of this installation text in %DRV%\DOCSETC
  357. ECHO Print out TUTOR.TXT in %DRV%\DOCSETC for a short guided tour.
  358. ECHO                     ---
  359. ECHO                     ---
  360. ECHO                     ---
  361. ECHO PC-Shakespeare is written in Text Technology's HyperShell, a powerful
  362. ECHO shareware DOS environment offering a panoply of facilities by means
  363. ECHO of which it is possible to challenge both your own and Nick Taylor's
  364. ECHO imagination; see the note HYPRSHEL.INF in the DOCSETC directory.
  365. ECHO                     ---
  366. ECHO                --------------
  367. ECHO                  ----------
  368. ECHO                 Enjoy PC-Shakespeare
  369. ECHO                     ---
  370. ECHO                      !
  371. PAUSE
  372. SET DSK=
  373. SHX HOME wait
  374. SET HCFG=
  375. DEL INSTALL.*
  376. GOTO ED
  377. :MS
  378. CLS
  379. ECHO %GET% is not in current directory: PC-Shakespeare cannot install.
  380. PAUSE
  381. :NO
  382. SET DRV=
  383. SET DRV1=
  384. SET GET=
  385. CLS
  386. ECHO            PC-Shakespeare was NOT installed!
  387. :ED
  388.